#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_radioButton_clicked(bool checked)
{
    // checked表示当前 RadioButton 的选中状态
    qDebug() << "on_radioButton_clicked(bool checked): " << checked;
}

void Widget::on_radioButton_2_pressed()
{
    qDebug() << "on_radioButton_2_pressed(): ";
}

void Widget::on_radioButton_3_released()
{
    qDebug() << "on_radioButton_3_released(): ";
}

void Widget::on_radioButton_4_toggled(bool checked)
{
    // checked发生改变,触发此信号
    qDebug() << "on_radioButton_4_toggled(bool checked): " << checked;
}

